using System;
using System.Collections.Generic;
using System.Text;
using QuanLyKhachSan.DTO;
using System.Data;
using QuanLyKhachSan.DAO;

namespace QuanLyKhachSan.BUS
{
    public class KhachHangBUS
    {
        // Them khach hang
        public static bool Insert(KhachHangDTO khachHangdto)
        {
            return KhachHangDAO.Insert(khachHangdto);
        }

        // Xoa khach hang 
        public static bool Delete(KhachHangDTO khachHangdto)
        {
            return KhachHangDAO.Delete(khachHangdto.MaKhachHang );
        }

        // Cap nhat thong tin khach hang
        public static bool Update(KhachHangDTO khachHangdto)
        {
            return KhachHangDAO.Update(khachHangdto);
        }

        // Lay danh sach khach hang
        public static DataTable LayDanhSachKH()
        {
            DataTable dt = new DataTable();
            dt = KhachHangDAO.LayDanhSachKH();
            return dt;
        }

        // Lay danh sach khach hang theo maLoaiKhach
        public static DataTable LayDanhSachKH(int maLoaiKhach)
        {
            DataTable dt = new DataTable();
            return dt;
        }
         //lay danh sach khach hang theo ten
        public static DataTable LayDSKhachHangTheoTen(string tenKH)
        {
            return KhachHangDAO.LayDSKhachHangTheoTen(tenKH);
        }
        public static DataTable LayDanhSachKhachHangTheoTen(string tenKH)
        {
            return KhachHangDAO.LayDanhSachKhachHangTheoTen(tenKH);
        }
        //lay KhachHang Moi Them vao
        public static DataTable LayKhachHangMoiThem()
        {
            return KhachHangDAO.LayKhachHangMoiThem();
        }
    }
}
